GET /api/learn/courses
List of Courses

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

[
  {
    "id": 2,
    "title": "Social Media for Athletic Departments",
    "progress_for_customer": 0.0
  },
  ...
]

GET /api/learn/courses/:id
Course Info

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "id": 2,
  "title": "Social Media for Athletic Departments",
  "sections": [
    {
      "id": 2,
      "title": "Introduction",
      "lessons_length": 1,
      "total_lessons_duration": "01:45",
      "lessons": [
        {
          "id": 1,
          "title": "Introduction",
          "video_duration": 105,
          "customer_action": {
            "finished": true,
            "video_timestamp_value": 135
          },
          "s3_key": null
        },
        ...
      ],
      "quizzes": [
        {
          "id": 2,
          "title": "Quiz 2",
          "customer_action": {
            "finished": false
          },
          "questions_length": 3
        },
        ...
      ]
    },
    ...
  ],
  "exam": {
    "id": 1,
    "title": "Exam",
    "questions_length": 40
  },
  "customer_action": {
    "id": 5,
    "finished": false,
    "s3_key": null,
    "actionable": {
      "id": 1,
      "title": "Quiz 1",
      "questions_length": 3,
      "questions": [
        {
          "id": 1,
          "body": "Your program’s Purpose is a part of:",
          "options": [
            {
                "id": 1,
                "body": "Your Why"
            },
            ...
          ]
        },
        ...
      ]
    },
    "video_timestamp": null
  }
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer